-- GENERATED SPELL FOR [Demon Hunter Initiate] --


function spell0_21180(pUnit, Event) --@Banish,n/a--
pUnit:FullCastSpellOnTarget(38009,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21180', 11000, 1)
end

function spell1_21180(pUnit, Event) --@Spellbreaker,n/a--
pUnit:FullCastSpellOnTarget(35871,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21180', 556, 1)
end

function Sorts_21180(pUnit, Event)
local choix_sorts_21180 = math.random(0, 1)
if choix_sorts_21180 == 0 then
pUnit:RegisterEvent('spell0_21180', 1, 1)
end
if choix_sorts_21180 == 1 then
pUnit:RegisterEvent('spell1_21180', 1, 1)
end
end

function mob21180_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21180', math.random(1500, 3000), 1)
end

function mob21180_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21180_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21180_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21180, 1, 'mob21180_Action')
RegisterUnitEvent(21180, 2, 'mob21180_Leave')
RegisterUnitEvent(21180, 3, 'mob21180_Kill')
RegisterUnitEvent(21180, 4, 'mob21180_Die')
